package nuc.soft.xsf.serviceImpl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import nuc.soft.xsf.dao.impl.MenuDaoImpl;
import nuc.soft.xsf.model.Menu;
import nuc.soft.xsf.service.IMenuService;
import nuc.soft.xsf.tools.JsonUtil;

@Service
public class MenuServiceImpl extends MenuDaoImpl implements IMenuService{
   
	@Override
	public String findMenuList(Map map) {
		List<Menu> menuList = super.findList(map);
		return JsonUtil.deelMenu(menuList);
	} 

	@Override
	public String findMenuDesk(Map map) {
		List<Menu> menuList = super.findDesk(map);
		return JsonUtil.deelDesk(menuList);
	}

	@Override
	public String findMenuList01(Map map) {
		// TODO Auto-generated method stub
		List<Menu> menuList = super.findList01(map);
		return JsonUtil.deelMenu(menuList);
	}

	/*@Override
	public int setDesk(Map map) {
		return super.setUserDesk(map);
	}

	@Override
	public int deleteDesk(String userid) {
		return super.deleteUserDesk(userid);
	}

	@Override
	public int setRole(Map map) {
		return super.setRoleMenu(map);
	}

	@Override
	public int deleteRole(String userid) {
		return super.deleteRoleMenu(userid);
	}

	@Override
	public String findRightById(Integer userId) {
		List<Menu> menuList = super.findRightById(userId);
		return JsonUtil.deelMenu(menuList);
	}
*/
}
